// 书写首页的css
// 导入公共的 common.less 文件
@import "common";
// body 的样式
body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica, STHeiTi,sans-serif;
    background: #f2f2f2;
}
ul,ol {
    list-style: none;
}
// 开始制作 top-banner 区域
@baseFont: 50px;
.top-banner {
    position: relative;
    width: 750rem / @baseFont;
    height: 100rem / @baseFont;
    .top-banner-img {
        display: block;
        width: 100%;
        height: 100%;
        img {
            display: block;
            width: 100%;
            height: 100%;
        }
    }
    .close {
        position: absolute;
        left: 0.1rem;
        top: 0.5rem;
        width: 50rem / @baseFont;
        height: 50rem / @baseFont;
        background: url(../images/close.png) no-repeat center center;
        background-size: 30rem / @baseFont auto;
    }
}
// header 区域
.header {
    width: 750rem / @baseFont;
    height: 180rem / @baseFont;
    background-color: #ffdb47;
    .header-top {
        display: flex;
        width: 682rem / @baseFont;
        height: 88rem / @baseFont;
        padding: 0 34rem / @baseFont;
        justify-content: space-between;
        align-items: center;
        .classify {
            img {
                display: block;
                width: 36rem / @baseFont;
                height: 60rem / @baseFont;
            }
        }
        .ad {
            img {
                display: block;
                width: 450rem / @baseFont;
                height: 55rem / @baseFont;
                margin-right: 50rem / @baseFont;
            }
        }
        .login {
            img {
                display: block;
                width: 36rem / @baseFont;
                height: 60rem / @baseFont;
            }
        }
    }
    .search {
        position: relative;
        width: 750rem / @baseFont;
        height: 92rem / @baseFont;
        padding: 0 24rem / @baseFont;
        box-sizing: border-box;
        a {
            position: absolute;
            top: 0;
            left: 24rem / @baseFont;
            width: 702rem / @baseFont;
            height: 88rem / @baseFont;
        }
        i {
            position: absolute;
            left: 42rem / @baseFont;
            top: 26rem / @baseFont;
            width: 36rem / @baseFont;
            height: 36rem / @baseFont;
            background: url(../images/search_btn.png) no-repeat 0 0;
            background-size: 36rem / @baseFont auto;
        }
        form {
            display: flex;
            width: 702rem / @baseFont;
            height: 88rem / @baseFont;
            align-items: center;
            input {
                width: 702rem / @baseFont;
                height: 64rem / @baseFont;
                padding: 3rem / @baseFont 20rem / @baseFont 0 65rem / @baseFont   ;
                border: 0;
                border-radius: 32rem / @baseFont;
                box-sizing: border-box;
                font-size: 0.56rem;
                line-height: 64rem / @baseFont;
            }
        }
    }
} 
// banner 区域
.banner {
    width: 750rem / @baseFont;
    height: 260rem / @baseFont;
    background: url(../images/banner_bg.png) no-repeat 0 0;
    background-size: 750rem / @baseFont auto;
    .wrapper {
        width: 702rem / @baseFont;
        height: 260rem / @baseFont;
        margin: 0 auto;
        overflow: hidden;
        ul {
            position: relative;
            width: 2000rem / @baseFont;
            height: 260rem / @baseFont;
            margin: 0;
            padding: 0;
            li {
                position: absolute;
                left: 702rem / @baseFont;
                top: 0;
                width: 702rem / @baseFont;
                height: 260rem / @baseFont;
                border-radius: 24rem / @baseFont;
                overflow: hidden;
                &.current {
                    left: 0;
                }
                img {
                    width: 702rem / @baseFont;
                    height: 260rem / @baseFont;
                }
            }
        }
    }
}
// nav部分
.nav {
    width: 750rem / @baseFont;
    height: 308rem / @baseFont;
    a {
        float: left;
        width: 150rem / @baseFont;
        height: 142rem / @baseFont;
        text-decoration: none;
        color: #666;
        font-size: 22rem / @baseFont;
        img {
            display: block;
            width: 84rem / @baseFont;
            height: 84rem / @baseFont;
            margin: 24rem / @baseFont 33rem / @baseFont 0;
        }
        p {
            height: 28rem / @baseFont;
            margin-top: 5rem / @baseFont;
            line-height: 28rem / @baseFont;
            text-align: center
        }
    };
}
// gift区域
.gift {
    display: flex;
    justify-content: space-between;
    margin-top: 20rem / @baseFont;
    width: 750rem / @baseFont;
    height: 234rem / @baseFont;
    margin: 0 auto;
    a {
        margin: 0;
        padding: 0;
    }
    .libao {
        display: block;
        height: 234rem / @baseFont;
        img {
            display: block;
            height: 234rem / @baseFont;
        }
    }
    .gaoneng {
        display: block;
        height: 234rem / @baseFont;
        img {
            display: block;
            height: 234rem / @baseFont;
        }
    }
    .biedian {
        display: block;
        height: 234rem / @baseFont;
        img {
            display: block;
            height: 234rem / @baseFont;
        }
    }
}
.bottom {
    position: fixed;
    bottom: 0;
    width: 750rem / @baseFont;
    height: 189rem / @baseFont;
    .login {
        width: 750rem / @baseFont;
        height: 88rem / @baseFont;
        border-bottom: 1px solid #ccc;
        background-color: rgba(0, 0,0,0.7);
        p {
            display: block;
            float: left;
            margin: 0;
            padding: 0;
            height: 88rem / @baseFont;
            padding-left: 24rem / @baseFont;
            font-size: 26rem / @baseFont;
            color: #fff;
            font-weight: lighter;
            line-height: 88rem / @baseFont;
        }
        a.liji {
            display: block;
            float: right;
            width: 168rem / @baseFont;
            height: 50rem / @baseFont;
            background-color: #ffdb47;
            margin: 19rem / @baseFont 24rem / @baseFont 19rem / @baseFont 0;
            text-decoration: none;
            font-size: 26rem / @baseFont;
            color: #222;
            text-align: center;
            line-height: 50rem / @baseFont;
        }
    }
    .nav-tag {
        width: 750rem / @baseFont;
        height: 99rem / @baseFont;
        margin: 0;
        padding: 0;
        background-color: #fff;
        a {
            float: left;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 20%;
            height: 99rem / @baseFont;
            text-decoration: none;
            line-height: 26rem / @baseFont;
            img {
                display: block;
                width: 40rem / @baseFont;
                height: 40rem / @baseFont;
            }
            p {
                display: block;
                margin: 0;
                padding: 0;
                padding-top: 6rem / @baseFont;
                text-align: center;
                font-size: 26rem / @baseFont;
                color: #333;
            }
        }
    }
}